package com.zui.entity.setup;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.sun.istack.internal.NotNull;
import com.zui.entity.BaseAssignedIdEntity;


@Entity
@Table(name="contact_mech_purpose_type")
public class ContactMechPurposeType extends BaseAssignedIdEntity {
	private static final long serialVersionUID = 1L;
	private String name;
	private ContactMechType contactMechType;
	
	/*------------------------------
	 * getters and annotations
	 --------------------------------*/
	@Column(length=50) @NotNull
	public String getName() {return name;}
	@ManyToOne() @JoinColumn(name="contactMechTypeId")
	public ContactMechType getContactMechType() {return contactMechType;}
	
	
	public void setContactMechType(ContactMechType contactMechType) {
		this.contactMechType = contactMechType;
	}
	public void setName(String name) {
		this.name = name;
	}
}
